package main


import (
"fmt"
"time"
)

func start(){
   for {
     select {
          case <-tone.C :
            fmt.Println("timeOut")
            tone.Reset(time.Second*2)
     }

   }
}


var tone = time.NewTimer(time.Second*10)

func main(){

   go start()

   time.Sleep(time.Second*100000)

   fmt.Println("ok")
}



